Step-by-step guide to create a metered feature for event ingestion
model.usage
, api.calls
, storage.gb
)model.usage
, every event you transmit must have "event_name": "model.usage"
.
credits
≠ Credits
≠ CREDITS
credits
, every event must include:
credit
, API call
, GB
credits
, API calls
, GBs
credit / credits
will show as “1 credit” or “5 credits” on invoices.
region = "EU"
or model = "gpt-4"
.
api.calls
API call / API calls
model.usage
credits
credit / credits
storage.usage
gb
GB
concurrent.users
count
user / users
api.calls
≠ API.calls
credits
≠ Credits
external_customer_id